<template>
	<view class="iceFlexAd">
		<svg t="1700726657707"
			class="icon1" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9526"
			xmlns:xlink="http://www.w3.org/1999/xlink" width="110" height="110" @click="click(1)">
			<path
				d="M827.392 195.584q65.536 65.536 97.792 147.456t32.256 167.936-32.256 167.936-97.792 147.456-147.456 98.304-167.936 32.768-168.448-32.768-147.968-98.304-98.304-147.456-32.768-167.936 32.768-167.936 98.304-147.456 147.968-97.792 168.448-32.256 167.936 32.256 147.456 97.792zM720.896 715.776q21.504-21.504 18.944-49.152t-24.064-49.152l-107.52-107.52 107.52-107.52q21.504-21.504 24.064-49.152t-18.944-49.152-51.712-21.504-51.712 21.504l-107.52 106.496-104.448-104.448q-21.504-20.48-49.152-23.04t-49.152 17.92q-21.504 21.504-21.504 52.224t21.504 52.224l104.448 104.448-104.448 104.448q-21.504 21.504-21.504 51.712t21.504 51.712 49.152 18.944 49.152-24.064l104.448-104.448 107.52 107.52q21.504 21.504 51.712 21.504t51.712-21.504z"
				p-id="9527" :fill="isRight == 1?'#d81e06':'#999999'"></path>
		</svg>
		<svg t="1700724156198" class="icon2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
			p-id="7868" xmlns:xlink="http://www.w3.org/1999/xlink" width="95" height="95" @click="click(2)">
			<path
				d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z"
				:fill="isRight == 2 ?'#1afa29':'#999999'" p-id="7869"></path>
		</svg>
	</view>
</template>
<script setup>
	import {
		ref,
	} from 'vue'
	const props = defineProps({
		option: {
			type: Object
		},
		k: {
			type: Number
		}
	})
	const emits = defineEmits(['answer'])
	const isRight =  ref(0)
	const click = (num)=>{
		isRight.value = num
		emits('answer',{'index':props.k,'question_id':props.option.id,'type':props.option.type,'score':props.option.score,'answer':num == 2 ?'正确':'错误'})
	}
</script>
<style lang="scss" scoped>
	.iceFlexAd{
		margin-top: 120px;
		.icon1{
			margin-top: 5rpx;
		}
	}
</style>